-- GENERATED SPELL FOR [Defias Prisoner] --


function spell0_1706(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1706', 5309, 1)
end

function spell1_1706(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(1766,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1706', 5000, 1)
end

function Sorts_1706(pUnit, Event)
local choix_sorts_1706 = math.random(0, 1)
if choix_sorts_1706 == 0 then
pUnit:RegisterEvent('spell0_1706', 1, 1)
end
if choix_sorts_1706 == 1 then
pUnit:RegisterEvent('spell1_1706', 1, 1)
end
end

function mob1706_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1706', math.random(1500, 3000), 1)
end

function mob1706_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1706_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1706_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1706, 1, 'mob1706_Action')
RegisterUnitEvent(1706, 2, 'mob1706_Leave')
RegisterUnitEvent(1706, 3, 'mob1706_Kill')
RegisterUnitEvent(1706, 4, 'mob1706_Die')
